package com.ss.android.article.base.feature.e;

import com.bytedance.retrofit2.Callback;
import com.bytedance.retrofit2.ResponseWrapper;
import com.ss.android.article.browser.R;
import com.ss.android.article.common.gg;
import com.ss.android.common.callback.CallbackCenter;
import com.ss.android.newmedia.BaseAppData;

final class f implements Callback {
    private final ArticleShareHelper a;

    f(ArticleShareHelper arg1) {
        this.a = arg1;

    }

    public final void onCacheResponse(ResponseWrapper response) {
        this.a.l.wendaData.isAnswerDelete = true;
        CallbackCenter.notifyCallback(BaseAppData.callbackTypeDeleteAnswer, new Object[]{this.a.l.wendaData.ansid});
        if(this.a.mActivity != null) {
            this.a.mActivity.finish();
        }
    }

    public final void onErrorResponse(Throwable throwable) {
        new gg(this.a.mActivity, R.string.net_error).a(throwable);
    }
}

